export enum ModalStatus {
  Hidden = 1, // 隐藏
  Add = 2, // 添加
  Edit = 3, // 编辑
  View = 4, // 详情
}

export const getModalTitle = (status: ModalStatus) => {
  let title = '';
  switch (status) {
    case ModalStatus.Add:
      title = '添加';
      break;
    case ModalStatus.Edit:
      title = '编辑';
      break;
    case ModalStatus.View:
      title = '查看';
      break;
    case ModalStatus.Hidden:
      title = '隐藏';
      break;
  }
  return title;
};
